package com.jah.picavue.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.json.client.JSONObject;

public class GotUserFeedEvent extends
		GwtEvent<GotUserFeedEvent.Handler> {
	/**
	 * Interface to describe this event. Handlers must implement.
	 */
	public interface Handler extends EventHandler {
		public void onGotUserFeed(GotUserFeedEvent p);
	}

	@Override
	protected void dispatch(GotUserFeedEvent.Handler handler) {
		handler.onGotUserFeed(this);
	}

	@Override
	public GwtEvent.Type<GotUserFeedEvent.Handler> getAssociatedType() {
		return TYPE;
	}

	public static final GwtEvent.Type<GotUserFeedEvent.Handler> TYPE = new GwtEvent.Type<GotUserFeedEvent.Handler>();

	private JSONObject userfeed;

	public JSONObject getFeed() {
		return userfeed;
	}

	public void setFeed(JSONObject feed) {
		this.userfeed = feed;
	}
}
